package studykana.utils;

import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.widget.ImageView;
import android.widget.TextView;

public final class DisplayNextView implements AnimationListener {

	private boolean mCurrentView;
	ImageView imageFrontCard;
	TextView tvBackCard;

	public DisplayNextView(boolean currentView, ImageView imageFrontCard,
			TextView tvBackCard) {
		mCurrentView = currentView;
		this.imageFrontCard = imageFrontCard;
		this.tvBackCard = tvBackCard;
	}

	public void onAnimationStart(Animation animation) {
	}

	public void onAnimationEnd(Animation animation) {
		imageFrontCard.post(new SwapViews(mCurrentView, imageFrontCard, tvBackCard));
	}

	public void onAnimationRepeat(Animation animation) {
	}
}
